<h2 class="jquery_tab_title">用户管理</h2>
<input type='hidden' id='user_num' value='<?php echo $user_num ?>'/>
<input type='hidden' id='per_page' value='<?php echo PER_PAGE ?>'/>
<form class='um' id='search_form'>
	<span>关键字：<input class='input-small' type='text' value='<?php echo $keywords ?>' id='keywords'/></span>
	
	<script>
	//给下拉菜单绑值
	$(function() {
		var society_array = getAllSocietyCategory();
		for (var i= 0; i < society_array.length; i++) {
			$('#user_category').append("<option value=" + (i + 1) + ">" + society_array[i] + "</option>");
		}
		<?php if ($user_category != ''):?>
		$('#user_category option').each(function() {
			if($(this).val() == <?php echo $user_category + "" ?>) {
				$(this).attr("selected", "selected");
			}
		});
		<?php endif;?>
	});
	</script>
	<span>
	帐号类型：
	<select id='user_category' >
		<option value="">请选择</option>
	</select>
	</span>
	
	<script>
	//给下拉菜单绑值
	$(function() {
		var status_array = getAllSocietyStatus();
		for (var i= 0; i < status_array.length; i++) {
			$('#confirm_FLAG').append("<option value=" + status_array[i][0] + ">" + status_array[i][1] + "</option>");
		}
		<?php if ($confirm_FLAG != ''):?>
		$('#confirm_FLAG option').each(function() {
			if($(this).val() == '<?php echo $confirm_FLAG?>') {
				$(this).attr("selected", "selected");
			}
		});
		<?php endif;?>
	});
	</script>
	<span>
	帐号状态：
	<select id='confirm_FLAG' >
		<option value="">请选择</option>
	</select>
	</span>
	
	<input class='button' id='search_submit' type='button' value='查询'/>
</form><br />
<?php if ($user_num > 0):?>
<table id='table_liquid' cellspacing='0'>
	<caption>查询到相关账户<?php echo $user_num ?>个</caption>
	<tr>
	<th class='nobg'>UID</th>
	<th>社团名称</th>
	<th>社团分类</th>
	<th>社团状态</th>
	<th>账户操作</th>
	</tr>
	
	<?php foreach ($user_info as $v):?>
	<tr>
	<th class='specalt'><?php echo $v['society_id']?></th>
	<td class='alt'><?php echo $v['s_name']?></td>
	<td class='alt'><?php echo $this->common_data->_get_society_category_name_by_cid($v['s_category'])?></td>
	<td class='alt <?php echo ($v['confirm_FLAG'] == SOCIETY_REVIEW_PASS || $v['confirm_FLAG'] == SOCIETY_FINAL_FAIL) ? 'tip' : ''?>'><?php echo $this->common_data->_get_society_status_by_confirm_flag($v['confirm_FLAG'])?></td>
	<td class='alt'>
		<span><a id='<?php echo $v['society_id']?>' class='um modify'>修改</a> | <a id='<?php echo $v['society_id']?>' class='um delete'>删除</a></span>
	</td>
	</tr>
	<?php endforeach;?>
</table>
<div id='Pagination' style='display: none;'></div>
<?php else :?>
<strong id='error_msg' style='background: url(/admin_style/images/attention.png) no-repeat; color: #f60;'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;悲剧了，没有找到您要的查询结果</strong>
<?php endif;?>